<template>
  <div id="app">
    <div class="bt1" @click="qxt('/home')">曲线图</div>

    <!-- 路由匹配到的组件将渲染在这里 -->
    <router-view class="lyzj"></router-view>
  </div>


</template>

<script>
  import HelloWorld from './components/HelloWorld.vue'

  export default {
    name: 'App',
    components: {
      HelloWorld
    },
    // 方法
    methods: {
      qxt(a) {
        if (this.$route.path !== '/Qxt') {
          this.$router.push('/Qxt');
        }
      }
    },
  }
</script>

<style scoped>
  #app {
    height: 100%;
    width: 100%;
  }

  .bt1 {
    position: fixed;
        top: 200px;
        left: 100px;
  }
  .lyzj {
    position: fixed;
    height: 100%;    
    width: 100%;
    left: 200px;
  }
</style>